<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="../templates/popup.xhtml">
	<ui:define name="titre">#{lbl['menu.hub.departure']}</ui:define>
	<ui:define name="popup_page">
		<!-- Les messages d'erreur. -->
		<rich:messages/>
		
		<h:panelGrid id="print_panel" style="width:100%;"
			columnClasses="_center">
			<h:form id="print_form">

				<div id="pdf_target_object_div">
					<!--Document Pdf. -->
					<object id="pdf_target_object" data="#{hubManaged.pdfFileToLoad}"
						type="application/pdf" width="100%" height="620px"> </object>


					<!-- Le bouton de retour. -->
					<a4j:commandButton value="#{lbl['common.button.cancel']}"
						action="departure_success" />

					<h:graphicImage value="../../imgs/spacer_10x1.gif" />

					<!-- Le bouton de validation pour le départ. -->
					<a4j:commandButton value="#{lbl['common.button.validate']}"
						onclick="display_div(false,'pdf_target_object_div')"
						action="#{hubManaged.finalizeDeparture}" />
				</div>
			</h:form>
		</h:panelGrid>
	</ui:define>
</ui:composition>
</html>